negotiator.qualitymeasures
Class ScenarioMeasures

java.lang.Object
  extended by negotiator.qualitymeasures.ScenarioMeasures

public class ScenarioMeasures
extends java.lang.Object

This class is an improved version of the SpaceDistance class by D. Tykhonov. Edit and run the main to automatically create a XML-sheet with the scenario characteristics of all scenarios in the domain file. Note that the current implementation assumes that all domains only have two preference profiles. For future work this could be extended by creating an arraylist of all preference profiles and returning the distances between all possible pairs.

Author:
Mark Hendrikx

Constructor Summary
ScenarioMeasures()
           
 
Method Summary
static OrderedSimpleElement calculateDistances(OrderedSimpleElement element, UtilitySpace utilitySpaceA, UtilitySpace utilitySpaceB)
          Calculate all metrics.
static void main(java.lang.String[] args)
           
static void process(java.lang.String dir)
          Calculates all metrics and saves the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioMeasures

public ScenarioMeasures()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args -
Throws:
java.lang.Exception

process

public static void process(java.lang.String dir)
                    throws java.lang.Exception
Calculates all metrics and saves the results. This is NOT the place to add mew metrics.

Parameters:
dir - path to Genius main dir
Throws:
java.lang.Exception

calculateDistances

public static OrderedSimpleElement calculateDistances(OrderedSimpleElement element,
                                                      UtilitySpace utilitySpaceA,
                                                      UtilitySpace utilitySpaceB)
Calculate all metrics. This method should be extended if you want to add your own measures.

Parameters:
element -
utilitySpaceA -
utilitySpaceB -
Returns:
XML representation of the domain characteristics